<?php
//所属部门
function user_branch($branch_id) {
	global $db, $pe;
	$branch = $db->pe_select('branch',array("branch_id"=>$branch_id),'branch_name');
	return $branch['branch_name'];
}
//职位
function user_job($job_id) {
	global $db, $pe;
	$job = $db->pe_select('job',array("job_id"=>$job_id),'job_name');
	return $job['job_name'];
}
//所属部门id
function getbranchid($branch) {
	global $db, $pe;
	$branch = $db->pe_select('branch',array("branch_name"=>$branch),'branch_id');
	return $branch['branch_id'];
}
//所属职位id
function getjobid($job) {
	global $db, $pe;
	$job = $db->pe_select('job',array("job_name"=>$job),'job_id');
	return $job['job_id'];
}
?>